package com.manage.platform.dto.query;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Null;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * YWD
 * 2025/9/23
 */
@Accessors(chain = true)
@Data
public class IndicatorSystemPartDto implements Serializable {

    @TableId(type = IdType.AUTO)
    @Schema(description = "指标体系ID, 修改必传")
    private Long id;

    @Null
    @Schema(description = "创建人用户ID,不传",hidden = true)
    private Long userId;

    @Schema(description = "上级指标ID(0表示顶级)")
    private Long parentId = 0L;

    @Schema(description = "层级(1,2,3,4,5...(默认为1级))")
    private Integer level = 1;

    @Schema(description = "名称")
    private String name;

}
